package Bean;

import java.text.SimpleDateFormat;

import com.alibaba.fastjson.JSONObject;

public class BeanRating {
	int rating;
	String uerid;
	String bookid;
	BeanBook book;
	
	public BeanBook getBook() {
		return book;
	}
	public void setBook(BeanBook book) {
		this.book = book;
	}
	public int getRating() {
		return rating;
	}
	public void setRating(int rating) {
		this.rating = rating;
	}
	public String getUerid() {
		return uerid;
	}
	public void setUerid(String uerid) {
		this.uerid = uerid;
	}
	public String getBookid() {
		return bookid;
	}
	public void setBookid(String bookid) {
		this.bookid = bookid;
	}
	public JSONObject toJson() {
		JSONObject j=new JSONObject();
		j.put("bookid", bookid);
		j.put("score", rating);
		j.put("book", book);
		return j;
	}
	
}
